<!DOCTYPE html>
<html>
<head>
  <style>
    .overflow {
      overflow: scroll;
      width: 200px;
      height: 200px;
    }

    #overflow1 {
      -webkit-overflow-scrolling: touch;
    }

    #overflow2 {
      -webkit-overflow-scrolling: auto;
    }

    .contents {
      height: 1000px;
    }
  </style>
  <script>
    if (window.testRunner)
      testRunner.dumpAsText();

    function doTest() {
      document.getElementById('overflow1').style.webkitOverflowScrolling = 'auto';
      document.getElementById('overflow2').style.webkitOverflowScrolling = 'touch';
    }
    window.addEventListener('load', doTest, false);
  </script>
</head>
<body>

  <div id="overflow1" class="overflow">
    <div class="contents">
      This test should not crash.
    </div>
  </div>

  <div id="overflow2" class="overflow">
    <div class="contents">
      This test should not crash.
    </div>
  </div>
</body>
</html>
